package com.shenmazong.demosecurity0719.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2021/7/19 14:47
 */

@RestController
@Slf4j
public class IndexController {


    @RequestMapping(value = "/login")
    public Object login(String name, String pass) {
        log.info("login:"+name);

        return "login";
    }

    @RequestMapping(value = "/index")
    public Object index() {
        log.info("index:...");

        return "index";
    }

    @RequestMapping(value = "/success")
    public Object success() {
        log.info("success:...");

        return "success";
    }

    @RequestMapping(value = "/failure")
    public Object failure() {
        log.info("failure:...");

        return "failure";
    }

    @RequestMapping(value = "/list")
    public Object list() {
        log.info("list:...");

        return "list";
    }

    @RequestMapping(value = "/insert")
    public Object insert() {
        log.info("insert:...");

        return "insert";
    }

    @RequestMapping(value = "/delete")
    public Object delete() {
        log.info("delete:...");

        return "delete";
    }

    @RequestMapping(value = "/update")
    public Object update() {
        log.info("update:...");

        return "update";
    }

    @RequestMapping(value = "/select")
    public Object select() {
        log.info("select:...");

        return "select";
    }

}
